package com.zlzxm.shoesmarket.view.adapter;

import android.text.Html;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.zlzxm.shoesmarket.R;
import com.zlzxm.shoesmarket.view.adapter.entity.EntityRecruit;

import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.util.List;

/**
 * CREATE BY zlzxm ON 4/23/21
 */
public class ADRecruit extends BaseQuickAdapter<EntityRecruit, BaseViewHolder> {

    public ADRecruit() {
        super(R.layout.item_recruit);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder holder, EntityRecruit entityRecruit) {

        holder.setText(R.id.tvPost,entityRecruit.getPost());
        holder.setText(R.id.tvRequire, entityRecruit.getRequire());
        holder.setText(R.id.tvTreatment,entityRecruit.getTreatment());
        holder.setText(R.id.tvAddress,entityRecruit.getAddress());
        holder.setText(R.id.tvTime,entityRecruit.getTime());

        holder.setText(R.id.tvContent,Html.fromHtml(entityRecruit.getContent()));
    }
}
